"""Added token in TgChatReference table

Revision ID: bc32417ccbd6
Revises: 6786c3ee9645
Create Date: 2024-04-24 22:44:52.797355

"""

from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = "bc32417ccbd6"
down_revision: Union[str, None] = "6786c3ee9645"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("tg_chat_reference", sa.Column("token", sa.String(), nullable=False))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("tg_chat_reference", "token")
    # ### end Alembic commands ###
